package cn.woniu.ecommerceplatform.mapper;

import cn.woniu.ecommerceplatform.entity.Address;
import cn.woniu.ecommerceplatform.entity.Orders;


import java.util.List;

public interface AddressMapper {
    List<Address> queryAddress(String account, String address);

    /**
     * 根据order_id修改地址
     * @param address
     * @return
     */
    int addressUpdate(Address address);

    Integer insertAddressForOrder(Address address);

    /**
     * 根据order_id查询地址
     * @param id
     * @return
     */
    Address  queryAddressById(Integer id);


    /**
     * 根据account查询地址
     * @param account
     * @return
     */
    List<Address> queryAddressByAccount(String account);


    int addressAllUpdate(Address address);

}
